const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
	// publicPath: './',
	devServer: {
		// port: 8081,
		proxy: {
			'/api': {
				target: 'http://localhost:80',
				changeOrigin: true,
				pathRewrite: {
					'/api': ''
				}
				// onProxyRes(proxyRes, req, res) {
				//   console.log(proxyRes.req, '----------------')

				// }
			}
		},
		client: {
			overlay: {
        warnings: false,
        errors: false
      }
		}
	},
})
